<html>
  <head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
    <title>xgetech</title>
  </head>
  <body bgcolor="#FFFFFF">
    <center>Scilab Function</center>
    <div align="right">Last update : April 1993</div>
    <p>
      <b>xgetech</b> -  get the current graphics scale</p>
    <h3>
      <font color="blue">Calling Sequence</font>
    </h3>
    <dl>
      <dd>
        <tt>[wrect,frect,logflag,arect]=xgetech()  </tt>
      </dd>
    </dl>
    <h3>
      <font color="blue">Parameters</font>
    </h3>
    <ul>
      <li>
        <tt>
          <b>wrect,frect</b>
        </tt>: real vectors.</li>
      <li>
        <tt>
          <b>logflag</b>
        </tt>: string of size 2 "xy".</li>
    </ul>
    <h3>
      <font color="blue">Description</font>
    </h3>
    <p>
      <tt>
        <b>xgetech</b>
      </tt> returns the current graphics scale (of the current window). 
    The rectangle [xmin,ymin,xmax,ymax] given by
    <tt>
        <b>frect</b>
      </tt> is the size of the whole graphics window. 
    The plotting will be made in the region of the current graphics window specified by <tt>
        <b>wrect</b>
      </tt>.</p>
    <p>
      <tt>
        <b>wrect=[x,y,w,h]</b>
      </tt> (upper-left point, width, height) describes a region 
    inside the graphics window. The values in <tt>
        <b>wrect</b>
      </tt> are specified using proportion
    of the width and height of the graphics window:</p>
    <p>
      <tt>
        <b>wrect=[0 0 1 1]</b>
      </tt> means that the whole graphics window is used.</p>
    <p>
      <tt>
        <b>wrect=[0.5 0 0.5 1]</b>
      </tt> means that the graphics region is the right 
    half of the graphics window.</p>
    <p>
      <tt>
        <b>logflag</b>
      </tt> is a string of size 2 "xy", where x and y can be "n" or "l". 
    "n" stands for normal (linear) scale and "l" stands for logscale. x stands for the x-axis and y stands
    for the y-axis.</p>
    <p>
      <tt>
        <b>arect=[x_left, x_right,y_up,y_down]</b>
      </tt> gives the frame size
    inside the subwindow. The graphic frame is specified (like <tt>
        <b>wrect</b>
      </tt>) 
    using proportion of the width or height of the current graphic subwindow. 
    Default value is <tt>
        <b>1/8*[1,1,1,1]</b>
      </tt>. If <tt>
        <b>arect</b>
      </tt> is not given, 
    current value remains unchanged.</p>
    <h3>
      <font color="blue">Examples</font>
    </h3>
    <pre>

// first subwindow 
xsetech([0,0,1.0,0.5])
plot2d()
// then xsetech is used to set the second sub window 
xsetech([0,0.5,1.0,0.5])
grayplot()
// get the graphic scales of first subwindow 
xsetech([0,0,1.0,0.5])
[wrect,frect,logflag,arect]=xgetech();
// get the graphic scales of second subwindow 
xsetech([0,0.5,1.0,0.5])
[wrect,frect,logflag,arect]=xgetech();
xbasc();
xset('default')
 
  </pre>
    <h3>
      <font color="blue">See Also</font>
    </h3>
    <p>
      <a href="xsetech.htm">
        <tt>
          <b>xsetech</b>
        </tt>
      </a>,&nbsp;&nbsp;</p>
    <h3>
      <font color="blue">Author</font>
    </h3>
    <p>J.Ph.C.;   </p>
  </body>
</html>
